package com.hzw.saas.web.app.old.storage.param;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzw.saas.common.util.constants.PatternConsts;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 资源列表
 *
 * @author zzl
 * @since 07/04/2021
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// @ApiModel("分享创建")
public class ResourceSharePostParam implements Serializable {

    private static final long serialVersionUID = 2949844485763811628L;

    @ApiModelProperty("目录列表")
    private List<String> folderIds;

    @ApiModelProperty("文件列表")
    private List<String> fileIds;

    @ApiModelProperty("分享名称")
    private String shareName;

    @ApiModelProperty("分享密码，不为空时，优先级大于enablePassword")
    private String password;

    @ApiModelProperty("是否设置密码，0-否，1-是，当password为空时，会自动设置密码")
    private Integer enablePassword;

    @ApiModelProperty("过期时间，pattern=" + PatternConsts.NORM_DATETIME_PATTERN)
    @JsonFormat(pattern = PatternConsts.NORM_DATETIME_PATTERN)
    private Date expireTime;

}
